import request from '@/utils/request'

//获取库按钮
export function getLibraryButtonList(data) {
	return request({
		method: 'get',
		url: 'tbRoleButton/queryPageList',
		params: data
	})
}

//新增库按钮
export function addedLibraryButton(data) {
	return request({
		method: 'post',
		url: 'tbRoleButton/add',
		data
	})
}

//修改库按钮
export function updateLibraryButton(data) {
	return request({
		method: 'post',
		url: 'tbRoleButton/update',
		data
	})
}

//删除库按钮
export function deleteLibraryButton(id) {
	return request({
		method: 'get',
		url: 'tbRoleButton/delete/' + id
	})
}

//查看库按钮详情
export function queryLibraryButton(id) {
	return request({
		method: 'get',
		url: 'tbRoleButton/query/' + id
	})
}